﻿using System;
using System.Web.Mvc;

namespace WorkWriter.Controllers
{
    public class HomeController : BaseController
    {
        public ActionResult Index()
        {
            var arrMonths = new string[18];//显示最近12个月的。
            for (int i = arrMonths.Length - 1; i >= 0; i--) arrMonths[i] = DateTime.Now.AddMonths(0 - i).ToString("yyyy-MM");
            ViewData["MonthRange"] = arrMonths;
            return View();
        }
        public ActionResult About()
        {
            return View();
        }
        public ActionResult Test()
        {
            ViewBag.Message = "Your test page.";

            return View();
        }

    }
}
